/*
 * @Author: Shane
 * @Date: 2022-06-30 17:25:41
 * @LastEditTime: 2022-07-01 13:51:42
 * @LastEditors: Shane
 * @Description: 
 * @FilePath: /app-framework/common_widgets/lib/loading/show_loading_view.dart
 */

import 'package:flutter/material.dart';

import 'ball_circle_loading.dart';
import 'ball_style.dart';

KKShowLoading(
  BuildContext context, {
  double width = 60,
  double height = 60,
  Color color = const Color(0xFFC20014),
}) {
  showDialog(
    context: context,
    builder: (context) {
      return Center(
        child: SizedBox(
          height: height,
          width: width,
          child: BallCirclePulseLoading(
            ballStyle: BallStyle(color: color),
          ),
        ),
      );
    },
    barrierDismissible: false,
    barrierColor: Colors.transparent,
  );
}

class KKLoading {
  KKLoading._();
  static Widget init() {
    return Container();
  }
}
